package com.example.pluginmanager.service.impl;

import com.example.pluginmanager.dao.RoleResourceRelationDao;
import com.example.pluginmanager.entity.Resource;
import com.example.pluginmanager.entity.RoleResourceRelation;
import com.example.pluginmanager.service.RoleResourceRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleResourceRelationServiceImpl implements RoleResourceRelationService {

    @Autowired
    private RoleResourceRelationDao resourceRelationDao;


    @Override
    public List<Resource> listRoleResourceRelation(List<String> roleIds) {
        return resourceRelationDao.listRoleResourceRelation(roleIds);
    }
}
